package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.modules.generator.entity.EmployeeInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.generator.entity.vo.TreeViewVoTest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-11-01 10:28:14
 */
@Mapper
public interface EmployeeInfoDao extends BaseMapper<EmployeeInfoEntity> {
    IPage<EmployeeInfoEntity> selectPageAll(IPage<EmployeeInfoEntity> page, QueryWrapper<EmployeeInfoEntity> ew,
              @Param("department") String department,@Param("groups") String groups,@Param("role_name")String role
            ,@Param("username") String username,@Param("codes") String codes);

    EmployeeInfoEntity queryUserId(Long userId);
    EmployeeInfoEntity selectEmployeeInfo(Long Id);

    List<TreeViewVoTest>    queryByParentId(Long parentId);
}
